import { defineMock } from "./base";

export default defineMock([
  {
    url: "metas/ig/options/:id",
    method: ["GET"],
    body: {
      code: "00000",
      data: {
        dataSourceAddress: [
          { label: "192.168.1.1", value: "192.168.1.1" },
          { label: "192.168.1.2", value: "192.168.1.2" },
        ],
        dataSourceName: [
          { label: "数据源1", value: "ds1" },
          { label: "数据源2", value: "ds2" },
        ],
        dataSourcePort: [
          { label: "3306", value: 3306 },
          { label: "5432", value: 5432 },
        ],
        dataSourceType: [
          { label: "MySQL", value: 1 },
          { label: "PostgreSQL", value: 2 },
          { label: "MongoDB", value: 3 },
        ],
      },
      msg: "一切ok",
    },
  },
]);
